package com.ylh.core;


import java.io.Serializable;

public class BaseReturnVo<T> implements Serializable {
    private static final long serialVersionUID = 4775049386428530168L;

    private  String flag = "0";
    private  String errCode;
    private  String errMsg;
    private String extend;
    private  T data;


    public String getFlag() {
        return flag;
    }

    public String getErrCode() {
        return errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public String getExtend() {
        return extend;
    }

    public BaseReturnVo<T> setExtend(String extend) {
        this.extend = extend;
        return this;
    }

    public T getData() {
        return data;
    }

    public BaseReturnVo<T> setFlag(String flag) {
        this.flag = flag;
        return this;
    }

    public BaseReturnVo<T> setErrCode(String errCode) {
        this.errCode = errCode;
        return this;
    }

    public BaseReturnVo<T> setErrMsg(String errMsg) {
        this.errMsg = errMsg;
        return this;
    }

    public BaseReturnVo<T> setData(T data) {
        this.data = data;
        return this;
    }
}
